﻿using StructureMap.Configuration.DSL;
using ZSoftInstagram.DataAccess;
using ZSoftInstagram.DataAccess.Abstractions;
using ZSoftInstagram.Domain.Board;
using ZSoftInstagram.Services;
using ZSoftInstagram.Services.Abstraction;
using ZSoftInstagram.Services.Upload;

namespace ZSoftInstagram.UI.Web.Infrastructure.IOC.Registries
{
    public class PinBoardServiceRegistry: Registry
    {
        public PinBoardServiceRegistry()
        {
            this.For(typeof(IPinBoardService))
                  .Use(typeof(PinBoardService))
                    .Ctor<IRepository<PinBoard>>().Is(new SqlRepository<PinBoard>(new ApplicationDbContext()));
        }
    }
}
